<?=form_open(uri_string());?>
<table class="form">
    <tr>
        <td class="w150 label required"><?=lang('banner.type');?></td>
        <td>
            <select name="banner_type" id="banner_type" style="width:250px;">
                <option value=""><?=lang('banner.choose_type');?></option>
                <option value="ARTIST" <?=($rs->banner_type=="ARTIST")?'selected="selected"':'';?>>Artist</option>
                <option value="MC" <?=($rs->banner_type=="MC")?'selected="selected"':'';?>>MC</option>
            </select>
        </td>
    </tr>
    <tr>
        <td class="w150 label"><?=lang('adv_name');?></td>
        <td><input type="text" name="lb_title" id="lb_title" class="w300"  value="<?=$rs->lb_title;?>"></td>
    </tr>
    <tr>
        <td class="w150  label"><?=lang('adv_link');?></td>
        <td><input type="text" name="lb_url" id="lb_url" class="w300" value="<?=$rs->lb_url;?>"></td>
    </tr>
    <tr>
        <td class="w150  label">Chuyên mục</td>
        <td><input type="text" name="lb_sumary" id="lb_sumary" class="w300" value="<?=$rs->lb_sumary;?>"></td>
    </tr>
    <tr>
        <td class="w150 label required"><?=lang('adv_images');?><br>(270x180)</td>
        <td><a class="lib_img" href="javascript:imgLib.openLib({width:'270',height:'180',return_tag:'lb_image',action:'imgcrop'});"></a>
        <div class="lb_image">
            <input type="hidden" name="lb_image" id="lb_image" value="" />
            <a href="javascript:imgLib.openLib({dir_img:'banner/artist/<?=$rs->lb_image?>',width:'270',height:'180',method:'imgcrop',return_tag:'lb_image',action:'imgcrop'});">
                <img src="<?=base_url_site()?>uploads/banner/artist/<?=$rs->lb_image?>" width="120px" />
            </a>
        </div></td>
    </tr>
    <tr>
        <td class="w150 label required"><?=lang('adv_images');?><br>(1366x440)</td>
        <td><a class="lib_img" href="javascript:imgLib.openLib({width:'1366',height:'440',return_tag:'lb_image_large',action:'imgcrop'});"></a>
        <div class="lb_image_large">
            <input type="hidden" name="lb_image_large" id="lb_image_large" value="" />
            <a href="javascript:imgLib.openLib({dir_img:'banner/<?=$rs->lb_image_large?>',width:'1366',height:'440',method:'imgcrop',return_tag:'lb_image_large',action:'imgcrop'});">
                <img src="<?=base_url_site()?>uploads/banner/<?=$rs->lb_image_large?>" width="200px" />
            </a>
        </div></td>
    </tr>
    <tr>
        <td class="w150  label">Diễn giải</td>
        <td>
            <textarea name="lb_desc" id="lb_desc" class="w350" rows="6"><?=$rs->lb_desc;?></textarea>
        </td>
    </tr>
    <tr>
        <td class="w150 label"><?=lang('adv_order');?></td>
        <td><input type="text" name="nb_order" id="nb_order" class="w200" value="<?=$rs->nb_order;?>"></td>
    </tr>
    <tr>
        <td class="label"><?=lang('active_deactive');?></td>
        <td><input type="checkbox" name="bl_active" id="bl_active"  value="1" <?=($rs->bl_active==1)? 'checked="checked"' : ''?>></td>
    </tr>
    <tr>
        <td class="label"></td>
        <td class="footer"><input type="submit" name="bt_submit" id="bt_submit" class="capnhat"></td>
    </tr>
</table>
<?=form_close();?>
